define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope,$stateParams,$sce,Recommend_info,GoPage) {
		$scope.input = new Object();
//		$scope.child_title = $stateParams.title;
		$scope.$on('$ionicView.beforeEnter', function() {
			GoPage.init_top($scope, 44, 0);
				$scope.init_data();
		}, false);
		$scope.init_data = function(){
			$scope.goods_id = $stateParams.goods_id;
		Recommend_info.get_data($scope.goods_id,function(data){
			$scope.data= $sce.trustAsHtml(data);
//			$scope.input.title = data.cusphone[$scope.parent].cat_type[$scope.child].name;
		})
	}

	}

	controller.$inject = ['$scope','$stateParams','$sce','Recommend_info','GoPage'];
	
	return app.registerController("recommend_infoctrl",controller);
});